/**
 * 2017，thor.com，all rights reserved。
 * 
 * Project：		palmmall-api
 * Filename：	Month.java
 * Created：		2017年4月28日
 * Creator：		wolv
 */
package com.thor.palmmall.api.rpt;

import java.io.Serializable;

/**
 * @author wolv
 *
 */
public class Week implements Serializable, Cloneable {
	private static final long serialVersionUID = 6082596451661393467L;

	public Week addMonth() {
		Week clone = new Week(year, month);
		clone.month++;
		return clone;
	}

	public Week subtractMonth() {
		Week clone = new Week(year, month);
		clone.month--;
		return clone;
	}

	public Week addYear() {
		Week clone = new Week(year, month);
		clone.year++;
		return clone;
	}

	public Week subtractYear() {
		Week clone = new Week(year, month);
		clone.year--;
		return clone;
	}

	public Week() {
		super();
	}

	public Week(int year, int month) {
		super();
		this.year = year;
		this.month = month;
	}

	private int year;
	private int month;

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}
}
